#include "ThreadPool.hpp"
#include "Task.hpp"
#include "Log.hpp"
#include <iostream>
#include <string>
#include <memory>
#include <ctime>

int main()
{
    LOG(DEBUG, "程序已加载");
    sleep(2);
    ThreadPool<Task>::GetInstance();
    sleep(2);
    ThreadPool<Task>::GetInstance();
    sleep(2);
    ThreadPool<Task>::GetInstance();
    sleep(2);
    ThreadPool<Task>::GetInstance();
    sleep(2);
    ThreadPool<Task>::GetInstance();
    sleep(2);
    ThreadPool<Task>::GetInstance()->Stop();
    sleep(2);
    return 0;
}